package org.wyy;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wyy.api.IBizA;
import org.wyy.dto.BizA;

/**
 * @author mars
 * @date 2024/1/18
 **/
@RestController
@RequestMapping("/demo")
public class BizBController {

    @DubboReference
    IBizA bizAService;

    @RequestMapping("biza")
    public ResponseEntity<BizA> getBizA(){
        BizA bizA = bizAService.getBizA(new BizA("attrB", "attrB"));
        return ResponseEntity.ok(bizA);
    }
}
